<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        th,
        td {
            width: 100px;
           padding: 10px 20px;
        }
        #addTable,
        #mask,
        #change {
            display: none;
            position: absolute;
            top: 0;
            left: 0;

        }
        #addTable
         {
            left: 50%;
            margin-left: -250px;
            width: 500px;
            background-color: #fff;
            z-index: 333;
        }
        #change{
            left: 50%;
            margin-left: -250px;
            width: 500px;
            background-color: #fff;
            z-index: 333;
        }
        #mask {
            width: 100%;
            height: 100%;
            background-color: #8d8d8d;
        }
    </style>
</head>
<body>
<div>
    <button type="button" id="add">新增</button>
    <button type="button" id="refresh">刷新</button>
</div>
<table border="1" cellspacing="0" cellpadding="0" align="center">
    <caption>查询档案</caption>
    <thead>
    <tr>
        <th>ID</th>
        <th>名字</th>
        <th>编码</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody id="tb">

    </tbody>
</table>

<div>
    <button type="button" id="left">&lt;</button>
    <span id="pages">

    </span>
    <button type="button" id="right">&gt;</button>
</div>


<div id="addTable">
    <table border="1" cellspacing="0" cellpadding="0" align="center">
        <caption>新增信息</caption>
        <tr>
            <td>名字</td>
            <td><input type="text" name="courseName" id="name"></td>
        </tr>
        <tr>
            <td>编码</td>
            <td><input type="text" name="courseNo" id="num"></td>
        </tr>
        <tr>
            <td><button type="button" id="addMess">添加</button></td>
        </tr>
    </table>
</div>
<div id="change">
    <table border="1" cellspacing="0" cellpadding="0" align="center">
        <caption>修改信息</caption>
        <tr>
            <td>名字</td>
            <td><input type="text" name="courseName" id="changeName"></td>
        </tr>
        <tr>
            <td>编码</td>
            <td><input type="text" name="courseNo" id="changeNum"></td>
        </tr>
        <tr>
            <td><button type="button" id="changeMess">修改</button></td>
        </tr>
    </table>
</div>
<div id="mask"></div>


<script src="js/jquery-1.12.1.js"></script>
<script src="js/showMess.js"></script>

</body>
</html>